<% tabs = [
  (["User Management", @project_data[:path] + "/user"] if has_project_permission("Project:user")),
  (
    if has_project_permission("Project:viewaccess")
      ["Access Control", @project_data[:path] + "/user/access-control", request.path.include?("/user/access-control")]
    end
  )
]
tabs.compact! %>
<%== part("components/tabbar", tabs:) if tabs.length >= 2 %>
